package com.deer.wms.ureport.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.deer.wms.ureport.dao.UreportFileMapper;
import com.deer.wms.ureport.model.UreportFile;
import com.deer.wms.ureport.service.UreportFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by guo on 2020/01/07.
 */
@Service
@Transactional
public class UreportServiceImpl extends ServiceImpl<UreportFileMapper, UreportFile> implements UreportFileService {

    @Autowired
    private UreportFileMapper ureportFileMapper;


    @Override
    public UreportFile findBy(String fileName, String value) {
        QueryWrapper<UreportFile> qw = new QueryWrapper<>();
        return super.getOne(qw.eq(fileName, value));
    }
}
